<?php

class Log_model extends Model {
	public function write($uid, $name, $content='') {
		$params = array(
			'uid' => $uid,
			'name' => $name,
			'content' => $content,
			'ip' => Func::clientIp(),
			'created_time' => Func::time()
		);
		$dLog = new Log_data();
		return $dLog->write($params);
	}
}